package com.eas.biz.dao.exam.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.eas.biz.dao.exam.dataobject.ExamDO;
import com.eas.biz.dao.exam.interfaces.ExamDao;
import com.eas.biz.framework.BaseQuery;
import com.eas.biz.framework.dao.GenericDaoImpl;

@Repository("examDao")
public class ExamDaoImpl extends GenericDaoImpl<ExamDO> implements ExamDao {

    public ExamDO selectById(long id) {
        return selectById("Exam.selectById", id);
    }

    public long insert(ExamDO exam) {
        return insert("Exam.insert", exam);
    }

    public int deleteById(long id) {
        return deleteById("Exam.deleteById", id);
    }

    public int update(ExamDO exam) {
        return update("Exam.update", exam);
    }

    public List<ExamDO> selectByQuery(BaseQuery query) {
        return selectByQuery("Exam.selectByQuery", query);
    }

    public int countByQuery(BaseQuery query) {
        return countByQuery("Exam.countByQuery", query);
    }
}
